package com.bwie.server;

import com.bwie.server.impl.UserServerImpl;
import com.bwie.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * TODO
 *
 * @Description
 * @Author 36167
 * @Date 2025/3/19 10:19
 **/

@Service
@FeignClient(value = "day3-19yk-user",fallback = UserServerImpl.class)
public interface UserServer {

    @PostMapping("/user/getuser/{id}")
    public R getuser(@PathVariable Integer id);
}
